class Todo < ApplicationRecord
  belongs_to :user

  has_many :todo_items, :dependent => :destroy

  validates_presence_of :title
  validates_presence_of :user_id
end
